function logout() {
  $.ajax({
    url: '/logout',
    success: function(data) {  window.location = '/barManager';},
  });
}